<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>设置轮廓的颜色</title>
    <style>
        p
        {
            border: 1px solid red;
            outline-style: dotted;
            outline-color: #00FF00;
        }
    </style>
</head>
<body>
<p><b>注意：</b>如果只有一个！DOCTYPE指定IE8支持outline属性。</p>
</body>
</html>